<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>v-for 指令</title>
<script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
  <ol>
    <li v-for="item in items">
      {{ item.name }}
    </li>
  </ol>
</div>

<script>
new Vue({
  el: '#app',
  data: {
    items: [
      { name: 'sb' },
      { name: 'hp' },
      { name: 'mg' }
    ]
  }
})
</script>
</body>
</html>